//
//  WMELayout.h
//  everyDay_duiTang
//
//  Created by 恩叔 on 16/1/16.
//  Copyright © 2016年 enshu. All rights reserved.
//

#import <UIKit/UIKit.h>

@class WMELayout;
@protocol WMELayoutItemHeightDelegate <NSObject>

- (CGFloat)layout:(WMELayout *)layout heightForItemAtIndexPath:(NSIndexPath *)indexPath width:(CGFloat)width;

@end

@interface WMELayout : UICollectionViewFlowLayout
@property (nonatomic, assign)NSInteger columCount;/**<列数*/
@property (nonatomic, assign)NSInteger columSparce;/**<列间距*/
@property (nonatomic, assign)NSInteger rowSparce;/**<行间距*/
@property (nonatomic, assign)UIEdgeInsets edgeInsets;/**<边距*/
@property (nonatomic, assign)id<WMELayoutItemHeightDelegate> delegate;

@end
